import request from '@/utils/request'
// 获取-权限点列表
export function getPermissionlist() {
  return request({
    url: '/sys/permission',
    method: 'get'
  })
}
// 新增-权限点
export function postPermission(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data: data
  })
}
// 获取-权限点详情
export function getPermissiondetail(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'get'
  })
}
// 修改-权限点详情
export function putPermissiondetail(data) {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put',
    data: data
  })
}
// 删除-权限点
export function detelePermission(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'detele'
  })
}
